package cn.hairui.fastms.core.bean;

import cn.hairui.fastms.core.annotation.Dict;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 角色信息表
 * </p>
 *
 * @author lihairui
 * @since 2020-11-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "SRole对象", description = "角色信息表")
public class SRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角色代码")
    @TableId("ROLE_CDE")
    private String roleCde;

    @ApiModelProperty(value = "角色名称")
    @TableField("ROLE_NAME")
    private String roleName;

    @ApiModelProperty(value = "角色状态")
    @TableField("ROLE_STS")
    @Dict(dictCode = "ZB_EFFECT_STATUS")
    private String roleSts;

    @ApiModelProperty(value = "备注")
    @TableField("ROLE_RMK")
    private String roleRmk;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATE_USER")
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private String createTime;

    @ApiModelProperty(value = "最新变更用户")
    @TableField("UPDATE_USER")
    private String updateUser;

    @ApiModelProperty(value = "最新变更时间")
    @TableField("UPDATE_TIME")
    private String updateTime;


}
